package com.chenyongjing.design.pattern.decorator.battercake.v2;

public class SausageDecorator extends BatterCakeDecorator{
    private BatterCake batterCake;

    public SausageDecorator(BatterCake batterCake) {
        super(batterCake) ;
    }

    @Override
    protected String getMsg() {
        return super.getMsg()+"+1根香肠";
    }

    @Override
    protected int getPrice() {
        return super.getPrice()+1;
    }
}
